package com.dky.satell.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.dky.satell.entity.MessageConfig;
import com.dky.satell.mapper.MessageConfigMapper;
import com.dky.satell.service.MessageConfigService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 * @author mqc
 * @since 2021-04-25
 */
@Service
public class MessageConfigServiceImpl extends ServiceImpl<MessageConfigMapper, MessageConfig> implements MessageConfigService {

    @Resource
    private MessageConfigMapper mapper;
    @Override
    public Page<MessageConfig> findMessageConfigList(Integer pageNo, Integer pageSize, String name) {
        PageHelper.startPage(pageNo, pageSize);
        Page<MessageConfig> page = mapper.findMessageConfigList(name);
        return page;
    }

    @Override
    public List<MessageConfig> findListIssueOrganization() {
        List<MessageConfig> listIssueOrganization = mapper.findListIssueOrganization();
        return listIssueOrganization;
    }

}
